31001: Function test for xfm:pi
Documentation
Owners
Name | Affiliation | Start | End | |
---|---|---|---|---|
Harald Schmitt |
|
harald.schmitt@abz-reporting.com | 29-10-2018 at 00:00:00 |
References
https://www.w3.org/TR/xpath-functions-31/#func-math-pi
https://dev.w3.org/cvsweb/2011/QT3-test-suite/math/
Test Case Variations
V-01
function pi() multipled by 2
Documentation
Inputs
- schema: http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd (DTS Discovery starting point) (ID=V01)
-
Function Call:
2 * xfm:pi()
(against file V01)
Outputs
-
Result test:
$result eq 6.283185307179586e0
V-02
function pi() converts an angle of 60 degrees to radians
Documentation
Inputs
- schema: http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd (DTS Discovery starting point) (ID=V02)
-
Function Call:
60 * (xfm:pi() div 180)
(against file V02)
Outputs
-
Result test:
abs($result - 1.0471975511965976e0) lt 1e-14
V-03
function pi() itself
Documentation
Inputs
- schema: http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd (DTS Discovery starting point) (ID=V03)
-
Function Call:
xfm:pi()
(against file V03)
Outputs
-
Result test:
$result eq 3.141592653589793e0
Revisions
Name | On | Details |
---|---|---|
Harald Schmitt | 29-10-2018 at 00:00:00 |
|